package com.zjh;

import com.zjh.bean.Student;
import com.zjh.dao.StudentDao2;
import com.zjh.util.sqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author LiZiQiu
 * @data 2023/3/11
 */
public class Test12 {
    public static void main(String[] args) {
        SqlSession session = sqlSessionUtil.getSession();
        StudentDao2 mapper = session.getMapper(StudentDao2.class);
        Student student = new Student();
        ArrayList list1 = new ArrayList();
        ArrayList list2 = new ArrayList();
        list1.add("stu015");
        list1.add("stu016");
        list1.add("stu017");
        list2.add("大壮");
        list2.add("旺财");
        list2.add("富贵");
        HashMap map = new HashMap();
        map.put("studentno",list1);
        map.put("name",list2);

        session.commit();
        sqlSessionUtil.closeSession();




    }
}
